package cn.fengsweb.tokyotyrant
{
	import cn.fengsweb.tokyotyrant.define.TokyoTyrantQueryFunctionName;
	
	import flash.utils.ByteArray;

	internal class GetOne
	{
		private var _sendBytes:ByteArray;
		
		public function get sendBytes():ByteArray
		{
			return _sendBytes;
		}
		
		public function GetOne(key:String)
		{
			var abuf:ByteArray	= new ByteArray();
				abuf.writeUTFBytes(key);
			
			var query:TokyoTyrantQuery	= new TokyoTyrantQuery(TokyoTyrantQueryFunctionName.GET);
				query.addArguments(abuf);
				
			_sendBytes	= query.sendBytes;
		}
	}
}